package designPatterns_demo.prototype_pattern.superficial_clone.demo4;

public class GoldRingedStaff {
	private float height = 100.0f;
	private float diameter = 10.0f;
	
	/**
     * 增长行为，每次调用长度和半径增加一倍
     */
	public void grow() {
		this.height *= 2;
		this.diameter *= 2;
	}
	
	/**
     * 缩小行为，每次调用长度和半径减少一半
     */
	public void shrink() {
		this.height /= 2;
		this.diameter /= 2;
	}
}
